//
//  CDTVVideoProgressView.h
//  CDTV
//
//  Created by Symbio on 10/17/12.
//  Copyright (c) 2012 symbio. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol MediaProgressViewDelegate <NSObject>

@optional
- (void)playOver:(long long)alltimer;
- (void)progressView:(id)videoProgressView selectCurrentTime:(long long)selectCurrentTime;
- (void)progressView:(id)videoProgressView tapChangedTime:(long long)tapChangedTime;

@end

@interface MediaProgressView : UIView <UIGestureRecognizerDelegate>

@property (nonatomic,weak) id<MediaProgressViewDelegate> delegate;
@property (nonatomic,assign) float allTime;
// 样式接口变量
@property (nonatomic,strong) UIColor *rightProgressColor;
@property (nonatomic,strong) UIColor *leftProgressColor;
@property (nonatomic,strong) UIColor *playableProgressColor;
@property (nonatomic,strong) UIColor *btnSplitImageViewColor;
@property (nonatomic,assign) float progressHeight;
@property (nonatomic,assign) float btnSplitImageViewWidth;
// lxin
@property (nonatomic, assign) BOOL isHideSplitBtn;
@property (nonatomic, strong) UIImage *btnSplitImage;

- (void)steupStyle;
- (void)setCurrentTimer:(float)currentTime playable:(float)playable_;
- (void)setImgRightProgressWidth:(CGFloat)width;
- (void)setImgLeftProgressWidth:(CGFloat)width;

@end
